public class Tixing{
    double above;
    double bottom;
    double height;
    Tixing(double a, double b, double h){
        above=a;
        bottom=b;
        height=h;
    }
    double getArea(){
        return (above+bottom)*height/2;
    }
}